package ex_6_syncBlockLockAll;


public class ThreadA extends Thread{
    private MyObject myObject;
    private Service service;

    public ThreadA(MyObject myObject,Service service){
        this.myObject = myObject;
        this.service = service;
    }

    @Override
    public void run() {
       service.testMethod(myObject);
    }
}
